package mysrpringboot.springboot.Dao;

import mysrpringboot.springboot.pojo.Position;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;

@Repository
public interface PositionDao extends JpaRepository<Position,String> {

    @Query(value = "select * from position ",nativeQuery = true)
    List<HashMap<String,String>> findAllToMap();
}
